// @ts-ignore
import { ReactComponent as IIconSearch } from './search.svg';
import { ReactComponent as IIconRefresh } from './refresh.svg';
import { ReactComponent as IIconPowerOn } from './power_on.svg';
import { ReactComponent as IIconfly } from './fly.svg';
import { ReactComponent as IIconmoney } from './money.svg';
import { ReactComponent as IIconchange } from './change.svg';
import { ReactComponent as IIconcart } from './cart.svg';
import { ReactComponent as IIconcard } from './card.svg';
import { ReactComponent as IIconiconPauseCircle} from './icon-pause-circle.svg';
import { ReactComponent as IIconsome} from './some.svg';
import { ReactComponent as IIconEdit } from './icon_edit.svg';
export function omitObject(obj: { [x: string]: any }, args: string[]) {
  let _newObj: any = {};
  Object.keys(obj).forEach((k) => {
    if (!args.includes(k)) {
      _newObj[k] = obj[k];
    }
  });
  return _newObj;
}
export const IconEdit = (props?: any) => (
  <IIconEdit className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const IconSearch = (props?: any) => (
  <IIconSearch className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const IconRefresh = (props?: any) => (
  <IIconRefresh className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const IconPowerOn = (props?: any) => (
  <IIconPowerOn className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const Iconfly = (props?: any) => (
  <IIconfly className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const Iconmoney = (props?: any) => (
  <IIconmoney className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const Iconchange = (props?: any) => (
  <IIconchange className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const Iconcart = (props?: any) => (
  <IIconcart className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const Iconcard = (props?: any) => (
  <IIconcard className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const IconiconPauseCircle = (props?: any) => (
  <IIconiconPauseCircle className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);
export const Iconsome = (props?: any) => (
  <IIconsome className={`${props?.className ?? ''} svg-default`} {...omitObject(props, ['className'])} />
);



